**THE ELECTORAL POLITICS OF ECONOMIC STAGNATION IN AGEING ADVANCED CAPITALIST DEMOCRACIES
**World Politics Replication File
**Tim Vlandas
**December 2024

***table 1
use "replication_data_table1.dta", clear
**column 1
xtreg oldpol elderly uniondensity leftgovernment tradeopenness capitalopenness i.id i.period, vce(cluster id)
**column 2
xtreg educpol elderly uniondensity leftgovernment tradeopenness capitalopenness i.id i.period, vce(cluster id)
**column 3
xtreg familypol elderly uniondensity leftgovernment tradeopenness capitalopenness i.id i.period, vce(cluster id)

***table 2
use "replication_data_table2.dta", clear
**column 1
xtreg gdpgrowth elderly, vce(cluster id)
**column 2
xtreg gdpgrowth elderly uniondensity tradeopenness capitalopenness leftgovernment inflation deficit i.id i.period, vce(cluster id)

***Figures
use "replication_data_figures.dta", clear
*Figure 2
quietly reg unemploymentbenefits l.unemploymentbenefits c.elderly##c.unemployment uniondensity leftgovernment tradeopenness capitalopenness industrialisation i.year i.id, vce(cluster id)
marhis elderly, mar(unemployment)
*Figure 3
quietly reg deficit l.deficit c.elderly##c.recession leftgovernment tradeopenness capitalopenness industrialisation i.year i.id, vce(cluster id)
marhis elderly, mar(recession)
